#ifndef _MY_ENCRYPTION
#define _MY_ENCRYPTION

#include "stdafx.h"
#include <windows.h>
#include <Wincrypt.h>
#include <stdio.h>
#include <stdlib.h>

#pragma comment(lib, "crypt32.lib")

typedef const BYTE* LPCBYTE;

LPTSTR Base64Decode(LPCTSTR lpData, DWORD dwSize);
LPTSTR Base64Encode(LPCBYTE lpData, DWORD dwSize, BOOL bStripCRLF);
DWORD TripleDESencrypt(TCHAR *plaintext,DWORD ptlen,TCHAR *passwd,DWORD pwlen,TCHAR *cyphertext,DWORD *ctlen);
DWORD TripleDESdecrypt(TCHAR *cyphertext,DWORD ctlen,TCHAR *passwd,DWORD pwlen,TCHAR *plaintext,DWORD *ptlen);

#endif